<script setup>

</script>

<template>
  <view class="loading-box f-col-c w-100">
    <view class="loading"></view>
  </view>
</template>

<style scoped lang="scss">
.loading-box {
  height: 100dvh;

  .loading {
    position: relative;
    width: 100rpx;
    perspective: 400rpx;
  }

  .loading:before,
  .loading:after {
    position: absolute;
    width: 40rpx;
    height: 40rpx;
    content: "";
    animation: jumping 0.5s infinite alternate;
    background: rgba(0, 0, 0, 0);
  }

  .loading:before {
    left: 0;
  }

  .loading:after {
    right: 0;
    animation-delay: 0.15s;
  }

  @keyframes jumping {
    0% {
      transform: scale(1) translateY(0px) rotateX(0deg);
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
      transform: scale(1.2) translateY(-50rpx) rotateX(45deg);
      background: #000;
      box-shadow: 0 50rpx 80rpx #000;
    }
  }
}
</style>